package com.fqyd.campustransaction.service.impl;

import com.fqyd.campustransaction.mapper.CommentMapper;
import com.fqyd.campustransaction.model.Comment;
import com.fqyd.campustransaction.service.CommentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {

	@Resource
	private CommentMapper mapper;

	@Override
	public List<Comment> getAll() {
		List<Comment> commentList = getAll();
		return commentList;
	}

	@Override
	public void add(Comment comment) {	mapper.insert(comment); }

	@Override
	public List<Comment> getByGoodId(String goodId) {
		List<Comment> commentList = mapper.getByGoodId(goodId);
		return commentList;
	}

	@Override
	public void update(Comment c) {}
	@Override
	public void delete(String s) {}
	@Override
	public Comment getById(String s) { return new Comment(); }

}
